package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.WorkdayHourTrafficTrendId;
import com.techstar.common.jackson.StrDateDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 特征日日均小时客流量趋势-工作日日均小时客流量
 * @date 2021年7月16日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "workday_hour_traffic_trend_work")
@IdClass(WorkdayHourTrafficTrendId.class)
@org.hibernate.annotations.Table(appliesTo = "workday_hour_traffic_trend_work",
	comment="pbtp-2-特征日日均小时班次/客流量趋势-工作日日均小时")
public class WorkdayHourDispatchTrendWork {
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '小时'")
	private String hour;
	@Column(columnDefinition="varchar(100) COMMENT '日均小时班次'")
	private String avgShiftByHour;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '日期'")
	@JsonDeserialize(using = StrDateDeserializer.class)
	private String createTime;
}
